package com.globallogic.strelchuk.multi.exception;

/**
 * @author olena.strelchuk
 */
/*
 * TableSizeException is thrown when MultiplicationTable size is not between 1
 * and 9
 */
public class TableSizeException extends Exception {

	private static final String TABLE_SIZE_SHOULD_BE_BETWEEN_1_AND_9 = "Table size should be between 1 and 9!";

	private static final long serialVersionUID = 5745232285701681774L;

	public int tableSize;

	public TableSizeException(int tableSize) {
		super(TABLE_SIZE_SHOULD_BE_BETWEEN_1_AND_9);
		this.tableSize = tableSize;
	}
}
